<script setup lang="ts">
import { seoConfig } from '~/config/seo'

useSeoMeta({
  title: seoConfig.risk.blacklist.title,
  description: seoConfig.risk.blacklist.description,
  keywords: seoConfig.risk.blacklist.keywords
})

// 产品优势数据
const advantages = [
  {
    icon: 'lucide:shield-ban',
    title: '智能识别',
    description: '维护庞大的骚扰号码数据库，智能识别骚扰电话'
  },
  {
    icon: 'lucide:database',
    title: '实时更新',
    description: '数据库实时更新，及时识别最新的骚扰号码'
  },
  {
    icon: 'lucide:filter',
    title: '精准过滤',
    description: '多维度过滤规则，准确拦截骚扰来电和短信'
  },
  {
    icon: 'lucide:shield-check',
    title: '品牌保护',
    description: '避免骚扰投诉用户，保护企业品牌形象'
  },
  {
    icon: 'lucide:trending-down',
    title: '降低投诉',
    description: '有效降低用户投诉率，保障业务合规运营'
  },
  {
    icon: 'lucide:users-round',
    title: '提升体验',
    description: '减少用户困扰，提升用户体验和满意度'
  }
]

// 行业应用场景数据
const scenarios = [
  {
    icon: 'lucide:megaphone',
    title: '营销平台',
    description: '过滤黑名单用户，避免重复骚扰，降低投诉风险',
    color: 'from-blue-500 to-cyan-500'
  },
  {
    icon: 'lucide:phone',
    title: '呼叫中心',
    description: '智能拦截骚扰号码，提高呼叫质量和效率',
    color: 'from-purple-500 to-pink-500'
  },
  {
    icon: 'lucide:landmark',
    title: '金融机构',
    description: '识别风险号码，保护客户隐私，防范欺诈',
    color: 'from-green-500 to-emerald-500'
  },
  {
    icon: 'lucide:shopping-cart',
    title: '电商平台',
    description: '过滤恶意用户，保护正常用户不受骚扰',
    color: 'from-orange-500 to-red-500'
  },
  {
    icon: 'lucide:building-2',
    title: '企业服务',
    description: '维护客户黑名单，优化客户关系管理',
    color: 'from-indigo-500 to-blue-500'
  },
  {
    icon: 'lucide:smartphone',
    title: '通信服务',
    description: '拦截骚扰电话和短信，提升通信安全性',
    color: 'from-yellow-500 to-orange-500'
  }
]
</script>

<template>
  <div class="min-h-screen">
    <!-- 顶部横幅 -->
    <ProductHero
      title="防骚扰黑名单"
      description="在号码检测的应用中，主要通过维护一个包含已知骚扰电话号码的数据库，帮助用户识别和拦截不必要的来电，这样不仅减少了用户的困扰，也提高了通信的效率和安全性"
    />

    <!-- 产品优势 -->
    <section class="py-16 md:py-24 bg-gray-50">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-16">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            产品优势
          </h2>
          <p class="text-lg text-gray-600">
            智能识别，有效拦截骚扰号码
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(advantage, index) in advantages"
            :key="index"
            class="bg-white rounded-2xl p-6 md:p-8 shadow-sm hover:shadow-lg transition-all group"
          >
            <div class="w-14 h-14 bg-gradient-to-br from-purple-500 to-pink-500 rounded-xl flex items-center justify-center mb-6 group-hover:scale-110 transition-transform">
              <Icon :name="advantage.icon" class="w-7 h-7 text-white" />
            </div>
            <h3 class="text-xl font-bold text-gray-900 mb-3">
              {{ advantage.title }}
            </h3>
            <p class="text-gray-600 leading-relaxed">
              {{ advantage.description }}
            </p>
          </div>
        </div>
      </div>
    </section>

    <!-- 行业应用场景 -->
    <section class="py-10 md:py-15 bg-white">
      <div class="mx-auto px-4 max-w-6xl">
        <div class="text-center mb-8 md:mb-10">
          <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">
            行业应用场景
          </h2>
          <p class="text-lg text-gray-600">
            广泛应用于各类需要号码管理的场景
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 md:gap-8">
          <div
            v-for="(scenario, index) in scenarios"
            :key="index"
            class="group relative bg-white rounded-2xl p-6 md:p-8 border-2 border-gray-100 hover:border-transparent hover:shadow-xl transition-all overflow-hidden"
          >
            <!-- 悬停时的渐变背景 -->
            <div 
              class="absolute inset-0 bg-gradient-to-br opacity-0 group-hover:opacity-10 transition-opacity"
              :class="scenario.color"
            />
            
            <div class="relative">
              <div 
                class="w-14 h-14 rounded-xl flex items-center justify-center mb-6 bg-gradient-to-br"
                :class="scenario.color"
              >
                <Icon :name="scenario.icon" class="w-7 h-7 text-white" />
              </div>
              <h3 class="text-xl font-bold text-gray-900 mb-3">
                {{ scenario.title }}
              </h3>
              <p class="text-gray-600 leading-relaxed">
                {{ scenario.description }}
              </p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- CTA 部分 -->
    <CallToAction />
  </div>
</template>

